package com.dianjing.dianqun.dao.dianpai;

import org.apache.ibatis.annotations.Param;

import com.dianjing.dianqun.common.base.CrudMpper;
import com.dianjing.dianqun.model.DianPaiCollection;

public interface DianPaiCollectionMapper extends CrudMpper<DianPaiCollection> {
	/**
	 *
	 * @mbggenerated 2017-10-25
	 */
	int deleteByPrimaryKey(DianPaiCollection record);

	/**
	 *
	 * @mbggenerated 2017-10-25
	 */
	int insert(DianPaiCollection record);

	/**
	 *
	 * @mbggenerated 2017-10-25
	 */
	int insertSelective(DianPaiCollection record);

	/**
	 *
	 * @mbggenerated 2017-10-25
	 */
	DianPaiCollection selectByPrimaryKey(DianPaiCollection record);

	/**
	 *
	 * @mbggenerated 2017-10-25
	 */
	int updateByPrimaryKeySelective(DianPaiCollection record);

	/**
	 *
	 * @mbggenerated 2017-10-25
	 */
	int updateByPrimaryKey(DianPaiCollection record);

	void cancelCollection(@Param("userId")Integer userId, @Param("contentId")Integer contentId);

	DianPaiCollection selectByPrimaryKey(@Param("userId")Integer userId, @Param("contentId")Integer contentId);

}